package com.pacy.pacybaseproject.viewmodels;

import android.app.Application;

import com.pacy.pacybaseproject.activitys.ExSuccessActivity;
import com.pacy.pacybaseproject.activitys.ExchangeNowActivity;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * @author PACY
 * @date 2024/4/24
 * description:
 */
public class ExchangeNowViewModel extends BaseViewModel {
    public ExchangeNowViewModel(Application application) {
        super(application);
    }

    public BindingCommand toNextPage=new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            startActivity(ExSuccessActivity.class);
        }
    });
}
